package com.qinyh.util;

import java.util.List;

import com.qinyh.entity.Book;
import com.qinyh.entity.Chapter;
import com.qinyh.entity.Page;

/**
 * 书本翻页信息
 * 
 * @author Administrator
 * 
 */
public class TemplateStore {
	// 当前书
	private static Book currentBook = null;
	// 当前章节
	private static Chapter currentChapter;
	// 前一页
	private static Page prePage = null;
	// 当前页
	private static Page currentPage = null;
	// 下一页
	private static Page nextPage = null;
	// 当前章节的序号
	private static int currentChapterSeq = 0;
	// 当前章节按页分好的list
	private static List<String> currentChapterContent;
	// 当前阅读的偏移量
	private static int currentStart = 0;
	private static int currentEnd = 0;
	private static int preStart = 0;
	private static int nextEnd = 0;

	public static int getCurrentStart() {
		return currentStart;
	}

	public static void setCurrentStart(int currentStart) {
		TemplateStore.currentStart = currentStart;
	}

	public static int getCurrentEnd() {
		return currentEnd;
	}

	public static void setCurrentEnd(int currentEnd) {
		TemplateStore.currentEnd = currentEnd;
	}

	public static int getPreStart() {
		return preStart;
	}

	public static void setPreStart(int preStart) {
		TemplateStore.preStart = preStart;
	}

	public static int getNextEnd() {
		return nextEnd;
	}

	public static void setNextEnd(int nextEnd) {
		TemplateStore.nextEnd = nextEnd;
	}

	// 字体
	public static int fontSize = 24;

	public static int getCurrentChapterSeq() {
		return currentChapterSeq;
	}

	public static void setCurrentChapterSeq(int currentChapterSeq) {
		TemplateStore.currentChapterSeq = currentChapterSeq;
	}

	public static List<String> getCurrentChapterContent() {
		return currentChapterContent;
	}

	public static void setCurrentChapterContent(
			List<String> currentChapterContent) {
		TemplateStore.currentChapterContent = currentChapterContent;
	}

	public static Chapter getCurrentChapter() {
		return currentChapter;
	}

	public static void setCurrentChapter(Chapter currentChapter) {
		TemplateStore.currentChapter = currentChapter;
	}

	public static Page getPrePage() {
		return prePage;
	}

	public static void setPrePage(Page prePage) {
		TemplateStore.prePage = prePage;
	}

	public static Page getCurrentPage() {
		return currentPage;
	}

	public static void setCurrentPage(Page currentPage) {
		TemplateStore.currentPage = currentPage;
	}

	public static Page getNextPage() {
		return nextPage;
	}

	public static void setNextPage(Page nextPage) {
		TemplateStore.nextPage = nextPage;
	}

	public static Book getCurrentBook() {
		return currentBook;
	}

	public static void setCurrentBook(Book currentBook) {
		TemplateStore.currentBook = currentBook;
	}
}
